package com.hncc.kumao.util;

import java.util.Random;

public class RandomUtils {

    public static String randomCode() {
        // 生成随机码
        Random random = new Random();
        int randomNum = random.nextInt(1000000);
        String randomCode = String.format("%06d", randomNum);
        return randomCode;
    }
}
